Use DATABASE() for compatibility with MySQL 4