Set PostgreSQL search_path at database level (fixes #1311)