Refactoring PropertyHistory and ContextHistory to use the same DB configuration (except for the db name)