Fix prefixed databases