when generating a full callstack from a global context, don't return a blank string
added db_disconnect & db_disconnect_all
moved cluster key building to a function
added db_ping()