Adding support for automatic sync between pages.
Prolly not best solution to update db values at every page loading,
added on todo list for further review.