add position column to todos in database, add todo id to list elements