changed to use mysql