Reconfigured app to use mysql