Handle django string formatted sqlite datetime