ActiveRecord + User and Contact models

Corrected mistakes from last PR ActiveRecords
Add new property and new functions in User model
few changes in Contact model
why to set $i index here and not use simple ```$arr[] = $value```?