Fixed error handling on delete, troubleshooting foreign key w/ delete