working on database story upgrader