Fixed invalid constraint for comments table in sqlite and mysql schema