Versioning of changes to database