Fixed sql(common, pg, mysql) and sophia tests
purpose: OOS-build tests fail