Added posting functionality

Added ability to create a post and insert it into the database.