Planning Your Database Search