interface issues on supporting both Postgres and Sqlite