Adding changes to convert app to use MySQL as DB.