you idiot. user.db_id was not getting saved to core data