Changed longs into integers, so that they are compatible with auto incrementing columns in postgres. Also changed organization id column in teams table to match sql naming conventions