Save authenticated users in database.