Test manipulating with DB using sql statements