made the create page save data into db