Create a generic DB testcase class