major refactoring

* adding mul/div functions
* casted cursors to NUMBER
* changed get_value from procedure to function