PreparedStatement p = con.prepareStatement("INSERT INTO LOTS VALUES (?, ?, ?, ?);");
for(int i=0; i<c.bm.blocks.size(); i++){
CityBlock b = c.bm.blocks.get(i);
for(int j=0; j<b.lots.size(); j++){
Lot l = b.lots.get(j);
p.setInt(1, i);
p.setString(2, l.shape.toString());
if(l.building != null){
p.setString(3, l.building.g.toString());