Updated ajax calls and db query
Merge branch 'master' of https://github.com/PlatoCreative/ping-pong