fix for php 5.3
datetime schema fix
reference schema fix
mongo nested query