more PDO instead of mysql functions