Cleaned up some code updated it so users get automatically redirected to install if no user table exists