add .references() to createTable and changeTable