add run app script and db build script