Scoped the db metadata to the database name so we don't get MD clashes