doc manipulation function stubs; DB sync