A complete class for MySQL and PHP5