add test case for sqlite and mysql.