changes for MySQL support