Renamed CreateSchema to EnsureSchema and reworked the function so that
it does not error if the schema already exists. Added a function to get
the verion of the database schema.