Made the base DAO use Mysqli instead of the procedural mysql.