Switched Database#getDocumentByKey to accept any Serializable