Updated DB build script