resolve some db script issue during deployment