A Class for mysql database.