@Override
	public boolean createTraining(Training training) {
		Connection connection = new DbConnection().getConnection();
		PreparedStatement preparedStatement = null;
		boolean flag = false;

		try {
			preparedStatement = connection.prepareStatement(INSERT_TRAINING);
			preparedStatement.setString(1, training.getTrainingName());
			preparedStatement.setInt(2,
					CommonUtil.getSkillId(training.getSkillName()));
			preparedStatement.setInt(3, training.getRatingId());
			preparedStatement.executeUpdate();
			flag = true;
		} catch (SQLException e) {
			m_logger.error(e.getMessage(), e);
		} finally {
			try {
				if (connection != null)
					connection.close();
				if (preparedStatement != null)
					preparedStatement.close();
			} catch (SQLException e) {
				m_logger.error(e.getMessage(), e);
			}
		}

		return flag;
	}