showing sql if user cannot edit