add database build script