Only fetch from DB when we have parameters