fix issue with different database prefix