change foreign keys to integer