Adjusted db methods for get_playlist_by_current_positions to include ending_positions