Yeah, that seems like the appropriate abstraction here. Since I always use Postgres, I haven't needed it yet, but it would be a good thing to have. This way we could incorporate database-specific fulltext search capabilities for some of the queries if that makes sense. They are different for each database.