added a basic structure to check the database version.