Moved to Postgres. Renamed some SQL tables and columns to conform with postgresql standards