Don't update the current user's data before recording into the database

Fix #44