On constraint based object oriented graphics database and algebraic query model for object oriented databases