Crud operations using php activerecord.