Added objectdb_link function and unit test