Updated to use mysql as persistence store