using postgresql as database, app is stil functioning locally