Inserting location data into db.