I think I found the source of the sql bug I've been running into. Also, tidying up the edit story screen a little