Added MySQL database schema and activation web server in PHP.
(TODO: make server use only MySQL)
fixed a small bug on server