Move from mysqli to PDO