variable_id in priors should be integer, many other foreign keys should be ints as well.