Added database models for comments and flags