An undertaking to comply with the seventh data protection principle has been signed by Dyfed Powys Police.