Update database.php

fix for using MySQL 5.6 and more standard SQL