app: implemented index for players.
app: fixed the getStats SQL statement.
app: polishing the getStats function.
app: protect from invalid id values.
app: don't hardcode the date value in the tests.