sql: more stubs for tests