todo list
changed factory() method to select()
bug in relation() method
added creating relation one2many and vice versa
commented while work will be done