Mysql db adapter