baseball for error about foreign keys