fix test sql struct for modern qt

also move recreating db to initTest method

test of sqlite doesn't work because it use old structure
fix some testes

now its all valid,  but coverrage is very small