finalize a draft of the database