Adding read/write to db function for comments.