Fixes missing url error
Adds more methods of interpreting the query

Fetches the category of a keyword within the database.
If still no categories, base results on time.