fixed check constraint error, because of uppercase in database mangager (changed to lowercase when writing in database