db.Database.prepareStatement fix to date type