Now using postgresql as the db