Fix bug in sql query.

For queries other than number 5 (sql for each person), a reference to an alias that is no longer defined (a.utctimestamp as time) threw an error.
Change references in select sql queries from 'time' to 'a.utctimestamp' in DBReader.cpp