Fixed bug in hstoreFromPhp, added date functions.