re-construct lib-db. to support share_conn