Use of boost::make_shared in sql