added a template test function that can be used both from testDBAgentMySQL and testDBAgentSQLite3.