apply database prefix