Fixed auto-update and db modification time