Add version numbers to JSON schemas and store them in the database when creating records.