Wrote a JSONEncoder to handle datetime objects
Ensured UTF8 encoding in DB settings