alter rewite; remove db config