It seems so that there is no implementation of using a keyfile for writing the database? KeePassDatabase.write works only with a password. Can you verify this?