changed to use mysql db