api data now being saved to database