adding custom active record for some models