Fixed sql(common, pg, mysql) search for modules

purpose: OOS-build tests fail