orm testcase for sql and nosql