Added a page model and a db operation to add a story.
Cleaned up syntax and indentation on a few files.