Use DateTime objects directly in DB statement vars
Fixed and improved the Form class