Use of boost::make_shared in sql

Second pass.