Added in database support for objects