There's nothing fancy in that SQL: Either use PDO, or mysqli. In any case, it would be nice to be able to swap out from MySQL if possible (ideally to Postgres)