Initial commit of database tests
Closer to working database test framework