Update ql_manager.cc

correct errors in insert()