Initial work to remove mongodb dependencies and move to jpa based persistence