simple mysql persistance implemented