Cost estimation of user-defined methods in object-relational database systems | Synapse