[FIX] Commands, CHECK: rebuild db if input document has been changed