Change configuration parser to the raw variant

This change was needed since having dates in the query introduces % in the
queries for python and that is a special sign in safe parser; and our need
is sufficed by raw parser so no point taking extra headache.

Signed-off-by: Imran M Yousuf <imyousuf@newscred.com>
Import packages used within queries - datetime, bson (for object id)

Signed-off-by: Imran M Yousuf <imyousuf@newscred.com>