more work on db added persistence support