Update replaceDatabase to match API spec