Hide database errors when setting the search path

It's needed to allow ROLLBACK to be executed on the DB. It resolves
issue #191.