make compatible to laravel 4.2 connectionfactory