now pulls data into the database