Stuck on a bug with my database search.