Implementing db object logic