Fixed last_update property fetching in db queries.
Refactored errors and exceptions reporting.