db now uses postgres instance
fixed table errors