Finishing the mysql adapter