Added databasing functionality to post and comment