Revised MySQL part