static sql updated to only login, logout, main, dashboard, codes, staff, groups