Add new func in DBBase to exec/query sql and add a new stocktest db for unit test