updates to persistence, fixed using plugin in st2