Changes to use mysql instance