Fixed MySQL Syntax, Unified Code Style