tests: use SQL scripts to setup env and run any command

Change-Id: I3a21775bc3879bf873f5dcfe3b4108d0b1a94e32
Merge "tests: use SQL scripts to setup env and run any command"