more work towards mysql. tests will now run...need fixins