changed uid to bigint due to PG issue