some tests. utility to grab the db from the context.