Add methods to database and node.