Readded check constraints. Changed IN to FROM