Fixed a bug where database keys couldn’t be overwritten in private databases