Remove unnecessary copy pasted classes
Use postgres geomfromtext function
Fix database bootstrap and add reset script