grab data and save to db