Added handling of datetime types for sqllite / javascript