test db access