Fixed "NaN" values in DB info when there are no queries or no DB is used
at all.