Now properly storing words in sentences and inserting chains into the database again.