Removed db specific code in favor of PDO