further work on mysql db adapter