Gravar-mail: Data preparation techniques for a perinatal psychiatric study based on linked data