backend and database

completed the backend code, and fixed some in database
Merge branch 'master' of github.com:mohamed-moanis/gotcha
backend

finished server script