Fix TEMPLATE_DIRS in settings.py to be a correct tuple

Django >1.5 complains about it to be deprecated
Add database options for correct table encoding