Include the current version number in the database

Per #419.