added adapters for local databases (SQLite and Postgres)