Added local DB (postgres) support