Added support for mysql database.