More fixes for postgres, returning for create + foreign keys