added tests for postgres and sqlite