public static int addToDB(String Firstname, String LastName,
			String PhoneNumber) throws SQLException, IOException {
		int isTrue = 0;
		PreparedStatement prStAddToDB = null;
		String query = "INSERT INTO `mobilephone` VALUES (?, ?, ?, null)";

		Connection conn = DBConnection.getConnection();
		try {
			conn.setAutoCommit(false);
			prStAddToDB = conn.prepareStatement(query);
			prStAddToDB.setString(1, Firstname);
			prStAddToDB.setString(2, LastName);
			prStAddToDB.setString(3, PhoneNumber);
			isTrue = prStAddToDB.executeUpdate();
			conn.commit();

		} catch (SQLException e) {
			if (conn != null) {
				try {
					System.err.print("Transaction is being rolled back");
					conn.rollback();
				} catch (SQLException excep) {
					excep.printStackTrace();
				}
			}
		} finally {
			if (prStAddToDB != null)
				prStAddToDB.close();
			conn.setAutoCommit(true);
			if (conn != null)
				conn.close();
		}
		return isTrue;
	}