Finalizing DB doc