Store the user entries in the database.