fixed db scripts.