Fixed insert method in user class to match id to database