added permissions and user tables