new DB methods

Update old mysql_* shit to PDO methods