Database and Router fixes

Database Result object can now update itself. And routing for
components is now fixed.