Converted application to use mysql database