Added multiple configurations for mysql and simplyfied application::run()