dbhelper for Old Versions of PHP