fix DBI mocking for cases of schema