Switched to doctrine entities for status data.
Fixed many errors made during previous refactoring.