Added database connection and bounding boxes

should be complete