fix SQL error when creating member