Begin abstracting more of the database-specific search backend out