added some (crappy) authentication
got posts to basically work with database