Issue #2848815 by mondrake, voleger, gaurav.kapoor, jeetendrakumar, Sharique, vidhatanand, techtud, cilefen, andypost: Replace all calls to db_next_id, which is deprecated