[database] throw an exception when Db.search isn't implemented