Fixed typo in mysql table creates; Improved mysql db object detection.