Fixing Issues #11 #12

#11 Evil bug when connection to PDO datasources

#12 Deprecated functionality: preg_replace(): The /e modifier is deprecated