Automatically check database version

Description

Implement an automatic check that makes sure the database is the correct version (range).

Explanation

Current system requires the user to manually change the version number in the config file to match the database version after each update.

Mockups/Data

The ES client should provide a function that returns the version of the database.

Dependencies, issues to be resolved beforehand

None.