fixed FactorySQL add restriction on Dblink