Fully changed over to using relational database rather than CSV. Working except for one bug - deleted stories don't seem to be removed from consideration when not allowing duplicate story names