thanks to the pgsql coalesce function the position of a track in a playlist is incremented on insert