fix: do not sent anythong on empty query

Signed-off-by: Zeljko <zeljko@zwr.fi>
url stored in database

Note that URLs are not constructed in the database, but they
need to be made later using methods defined here.

Signed-off-by: Zeljko <zeljko@zwr.fi>