Move json databae to pickle ones.
Fix unconsistent error message