fixed some issues, removed site foreign key from space
fixing error with postgresql