Watches files to changes and update the db accordingly.