using postgresql instead of sqlite