import old db script