tw_set_cache_db function

Set database connection settings for the session