modify Date instance
fix parameter index in preparedStatement