move post_story() under Database Functions