Fixes for moving over to the server

fixed things like the mysql permissions and things like that.