Fixed writing to CommonSense database, but there are still duplicates of memo notes written to it.