Batch inserting locations into database