Fixed DB Update check

That was amazingly stupid of me.