added check for subsite user mysql permissions, and auto update if needed