Updated to use MySQL instead