Saving names to database.