work around issues with rsakey and db