* Add AbstractDbObject.
* Restructure code.