@Override
	public ActorModel addActor(ActorModel actor) throws WebshopAppException
	{
		if (actor != null)
		{
			int generatedId;

			try (Connection conn = getConnection())
			{

				String sql = "INSERT INTO actors (firstname, lastname, dob)"
						+ "VALUES (?, ?, ?)";

				try (PreparedStatement pstmt = conn.prepareStatement(sql,
						Statement.RETURN_GENERATED_KEYS))
				{

					pstmt.setString(1, actor.getFirstname());
					pstmt.setString(2, actor.getLastname());
					pstmt.setString(3, actor.getDob());

					pstmt.executeUpdate();

					generatedId = ActorModel.DEFAULT_ID;
					try (ResultSet rs = pstmt.getGeneratedKeys())
					{
						if (rs.next())
						{
							generatedId = rs.getInt(1);
						}
					}

					ActorModel newModel = new ActorModel(generatedId, actor);

					LOGGER.trace("Added new actor to database: " + newModel);

					return newModel;

				}
			}
			catch (SQLException e)
			{
				WebshopAppException excep = new WebshopAppException(e.getMessage(), this.getClass()
						.getSimpleName(), "ADD_ACTOR");
				LOGGER.error(excep);
				throw excep;
			}

		}
		return null;

	}