fixed issues with comments and database