Add SQL helpers for working more sanely with datetimes