more work on mysql classes