updated db build script