Store data in the database