You could consider reviewing how others do it. There's a reason why less and less want to host their comments and outsource that instead. Comment = write access to your site. You don't want that. There are multi-million dollar spam farms dedicating hundreds of developers to finding ways to spam and abuse comments.
Every single WP, Drupal and Joomla website that I know that was not properly maintained or hosted with a major provider (such as WP@WP themselves) got hacked at some point.