Mysql database adapter implementation