Moving 'dbupdate' flag check to request instead of session to prevent user from having to clear his session after database update