updated the db build script.