Added support for date and datetime database types