@staticmethod
def get_dbschema_version(schema):
    """
        Get the version of the actual schema version stored in database

        :param schema: Mongo schema info
        :type schema: MongoDB collection
        :returns: moderate, minor
        :rtype: int, int

        """
    schema_version = schema.find_one({'id': 1})
    if schema_version is None:
        schema_version = {'id': 1, 'version': '3.0.0'}
        schema.insert(schema_version)
    return schema_version['version']
