closing database branch