Fixed db issues, session handling and changed addition of blogpost