link inventory gui with database