Migrated to active record pattern #674

This patch migrates nereid-cms to active record pattern.

Task ID: project-69/task-674
Review ID: 9354222