database now populates based on paragraph as well