compare contents of sqlite database instead of exact file hash