implement back-end

Finished tutorial.
- Posts and comments persisted to DB