Wired up posting to database and fetching from databse

TODO: prettify the posts  <3