CORE-5767 Update for dbs without a version table.

Updated kameleon.queries/current-db-version to return nil if no version table exists.
CORE-5766 Added version table to metadata db.