added mongodb connection, id and timestamps to results