basic db build script