improve script set secret key
add install db script