moved story elements into db