test database/sql interface implementation